var express = require('express');
var product_router = require('./router/product')
var stock_router = require('./router/stock')

var app = new express();

app.use('/product',product_router)
app.use('/stock',stock_router)

var server = app.listen(3000,'localhost',function (req,res) {

    var host = server.address().address;
    var port = server.address().port;

    console.log("the server is running on htttp://%s:%s",host,port);

})